package model

type User struct {
	id   int
	addr Address
}

// NewUser 创建新用户
func NewUser(id int, addr Address) *User {
	return &User{id, addr}
}

func (u *User) getId() int {
	return u.id
}

func (u *User) getAddr() Address {
	return u.addr
}
